package cn.cds.withyou.admin.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;

import butterknife.ButterKnife;
import butterknife.OnClick;
import cn.cds.withyou.admin.R;
import cn.ljs.android.ui.BaseActivity;

public class MainActivity extends BaseActivity {

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.activity_main);

        ButterKnife.bind(this);
    }

    @OnClick({R.id.member_request_btn, R.id.vip_request_btn, R.id.check_feedback_btn, R.id.add_game_btn, R.id.add_activity_btn, R.id.add_arena_btn, R.id.add_course_btn})
    public void onClick(View view) {
        switch (view.getId()) {
            case R.id.member_request_btn:
                RequestVerifyActivity.startActivity(this, true);
                break;
            case R.id.vip_request_btn:
                RequestVerifyActivity.startActivity(this, false);
                break;
            case R.id.check_feedback_btn:
                startActivity(new Intent(this, FeedbackCheckActivity.class));
                break;
            case R.id.add_game_btn:
                startActivity(new Intent(this, GameAddedActivity.class));
                break;
            case R.id.add_activity_btn:
                startActivity(new Intent(this, ActivityAddedActivity.class));
                break;
            case R.id.add_arena_btn:
                startActivity(new Intent(this, ArenaAddedActivity.class));
                break;
            case R.id.add_course_btn:
                startActivity(new Intent(this, CourseAddedActivity.class));
                break;
            default:
                return;
        }
    }
}
